Authentication

see the source

Author: David Li davidli012345@gmail.com

Execution cost: less than 220 gas

Deployment cost: less than 179200 gas

Combined cost: less than 179420 gas

Events

UserCreated(address,bytes32,uint256)

Execution cost: No bound available

Params:

  1. _address of type address
  2. _name of type bytes32
  3. _created_at of type uint256

UserDeleted(address)

Execution cost: No bound available

Params:

  1. _address of type address

UserUpdated(address,bytes32)

Execution cost: No bound available

Params:

  1. _address of type address
  2. _name of type bytes32

Methods

allUsers(uint256)

Execution cost: less than 765 gas

Attributes: constant

Params:

  1. param_0 of type uint256

Returns:

  1. output_0 of type address

destroy()

destroy existing username

Execution cost: less than 11678 gas


login()

Execution cost: less than 839 gas

Attributes: constant

Returns:

username

  1. output_0 of type bytes32

signup(bytes32)

checks if user exists If yes return user name If no, check if name was sent If yes, create and return user

Execution cost: less than 83052 gas

Attributes: payable

Params:

  1. name of type bytes32

    the username to be created.

Returns:

username of created user

  1. output_0 of type bytes32

update(bytes32)

updating user name

Execution cost: less than 22633 gas

Attributes: payable

Params:

  1. name of type bytes32

    updating username

Returns:

updated username

  1. output_0 of type bytes32

Back to the top ↑